home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / ast_comp / sql.txt / README < prev    next >
Encoding:
Text File  |  1993-07-04  |  1.8 KB  |  56 lines

  1. This directory contains the parser for DDF.  The components are as follows
  2.  
  3. Makefile
  4. README
  5.  
  6. PROGRAM FILES
  7. dsl.l           Lex for parser
  8. dsl.y           Yacc for parser
  9. parser.c        Main parser function
  10. rwsearch.c      Reserved word table search functions
  11. tpar.c        Main for testing parser
  12.  
  13. INCLUDE FILES
  14. tmprws.h    template for parser.h; filled with data generated from
  15.         y.tab.h (output of yacc)
  16. ddf.h        definition of type DDFRUN
  17. gtok.h        Parser tree token definitions
  18.  
  19. AUXILIARY SHELL SCRIPTS AND PROGRAMS
  20. ed0        edit script for lex; executed after generating lex.yy.c
  21.         from dsl.l; removes the definitions of makros input(),
  22.         output(c), and unput(c) - they are redefined in parser.c
  23. ed0.out        stdout protocol of ed0 actions
  24. ed1        edit script for yacc; modifies the output y.tab.h of
  25.         yacc to produce y.h; y.h is sorted and piped through phm
  26.         to produce rnums and rwords
  27. ed1.out        stdout protocol of ed1 actions
  28. ed2        edit script for yacc; generates file nt containing 'wc y.h';
  29.         opens tmprws.h, inserts nt, rnums, and rwords in
  30.         appropriate places, and writes parser.h
  31. ed2.out        stdout protocol of ed2 actions
  32. phm.c        reads y.h to generate rnums and rwords
  33. phm        result of cc -o phm phm.c
  34.  
  35. TEMPFILES
  36. lex.yy.c    lex output generated from dsl.l
  37. y.tab.c        yacc program ( yyparse() ) generated from dsl.y
  38. y.tab.h        include with token definitions generated by yacc
  39. y.output    states and transitions documented by yacc
  40. rnums
  41. rwords
  42. nt
  43. parser.h        parser related tables, defines and variables;
  44.         generated by ed2
  45. y.tab.o        object module yyparse
  46. parser.o    object module parse
  47.  
  48. TEST
  49. vtest2        list of sql statements
  50. tf.l        lex definition to eliminate numbers from vtest2
  51. tf.yy.c        lex output generated from tf.l
  52. tf        result of cc -0 tf tf.yy.c -ll
  53. tpar        main test program; reads stdin and writes pt_file
  54. testpar        shell script to execute tpar: tf < vtest2 | tpar
  55. pt_file        parse tree test output file
  56.